import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入ElementUI
import ElementUI from 'element-ui'
//全局引入ElementUI的样式
import 'element-ui/lib/theme-chalk/index.css'
//调用elementUI
Vue.use(ElementUI)

//全局引入
import gCom from './common'
for (let i in gCom) {
  Vue.component(i, gCom[i])
}

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')